import request from "@/utils/vue2Request";


// 获取验证码
export const reqPassport = (phone: string) => {
  return request.get<any, any>(`/user/passport/sendCode/${phone}`)
}
// 登录

export const reqLogin = (formData: any) => {
  return request.post<any, any>(`/user/passport/login`, formData)
}

// 注册
// /user/passport/register
export const reqregister = (formData: any) => {
  return request.post<any, any>(`/user/passport/register`, formData)
}
//退出登录
export const logout = () => {
  return request.get<any, null>('/user/passport/logout')
}


// 获取个人的信息
export const reqUserInfo = () => {
  return request.get<any,any>(`/user/passport/auth/getUserInfo`)
}